adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 29 Jan 2026 19:25:23 +0000 (22:25 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 29 Jan 2026 19:25:23 +0000 (22:25 +0300)
commitddb3e1e0c5aea5ad88635136911aaad4d7873ba1
tree65ea8598e346367869382eaf28c3307a0f9918c2
parent94efef7f10d7e7165e803c700d95e77ba9ba8e73
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff
src/corelib/mimetypes/qmimedatabase.cpp
src/corelib/mimetypes/qmimeglobpattern.cpp